import request from './../utils/request';

export function getAdminList(params) {
  return request.get('/admin/list', { params });
}

export function getUserlist(params) {
  return request.get('/user/list', { params });
}

export function addAdmin(params) {
  return request.post('/admin/add', params);
}

export function updateAdmin(params) {
  return request.post('/admin/update', params);
}
export function deleteAdmin(params) {
  return request.post('/admin/delete', params);
}

export function login(params) {
  return request.post('/admin/login', params);
}

export function getAdminDetail(params) {
  return request.get('/admin/detail', { params });
}

export function validateTel(params) {
  return request.post('/users/validateTel', params);
}

export function sendCodeFn(params) {
  return request.post('/users/sendCode', params);
}

export function validateTelCode(params) {
  return request.post('/users/validateTelCode', params);
}

export function registerFn(params) {
  return request.post('/users/register', params);
}
